package com.ads.orm.model.j;

import java.lang.reflect.Modifier;
import java.util.List;

import com.abs.orm.model.SuperModel;

public class JMethod implements SuperModel {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6712780742062226229L;
	private String modifier = Modifier.toString(Modifier.PUBLIC);
	private String name;
	private String clazz;
	private String returnClazz = "void";
	private List<JParameter> jParameters;

	public JMethod() {
		super();
	}

	public JMethod(String modifier, String name, String clazz,
			String returnClazz) {
		super();
		this.modifier = modifier;
		this.name = name;
		this.clazz = clazz;
		this.returnClazz = returnClazz;
	}

	public JMethod(JField arg0) {
		super();
		this.name = arg0.getName();
		this.clazz = arg0.getClazz();
	}

	public String getModifier() {
		return modifier;
	}

	public void setModifier(String modifier) {
		this.modifier = modifier;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}

	public String getReturnClazz() {
		return returnClazz;
	}

	public void setReturnClazz(String returnClazz) {
		this.returnClazz = returnClazz;
	}

	public List<JParameter> getJParameters() {
		return jParameters;
	}

	public void setJParameters(List<JParameter> jParameters) {
		this.jParameters = jParameters;
	}
}
